const { SUCCESS_RESPONSE } = require('../config/index.js')

// 文章分页接口
exports.tagList = async (req, res) => {
  const tags = await req.db.tag.findAll({
    raw: true,
  })
  res.json(SUCCESS_RESPONSE(tags))
}
